﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThuVien;
namespace TranTekBE.News
{
    public partial class Delete : PageRequireLogin
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string id = Request.QueryString["id"];
            if (id != null && UserInfo.UserName == "lehang")
            {
                string sql = "DELETE FROM tbl_News WHERE ID=" + id;
                FunctionsUtils.Database2.ExecuteNonQuery(sql);
            }
            else
            {
                Response.Redirect("Home.aspx");
            }
        }
    }
}